<?php

$aFonts = array('fonts/VeraBd.ttf', 'fonts/VeraIt.ttf', 'fonts/Vera.ttf');
if(!isset($_GET['key'])){
	require_once('php-captcha.inc.php');
	$oVisualCaptcha = new PhpCaptcha($aFonts, 200, 48);
	$oVisualCaptcha->CaseInsensitive(true);
	$id = isset($_GET['id']) ? $_GET['id'] : '';
	$oVisualCaptcha->Create('', $id);
}else{
	require_once('php_captcha_extends.php');
	$captcha_exts = new PHP_Captcha_Exts($aFonts, 200, 48);
	$key_session = isset($_GET['key'])?trim($_GET['key']):NULL;
	$captcha_exts->CaseInsensitive(true);
	$id = isset($_GET['id']) ? $_GET['id'] : '';
	$captcha_exts->Create('',$key_session, $id);
}
?>